/* 
** test array 
*/
#include <stdio.h>
#include <string.h>

static char * lcs_logname = "lcs_helloworld";
static char lcs_logbuf[512];
static void lcs_testlog()
{
	int fp;
	
	fp = fopen( lcs_logname, "at" );
	if( !fp ) return;

	printf( "%s", lcs_logbuf );
	fprintf( fp, "%s", lcs_logbuf );
	
	fclose( fp );
}

/*
** test begin...
*/

int lcs_helloworld()
{
	sprintf( lcs_logbuf, "hello world\n" );
	lcs_testlog(); 
	return 0;
}

/*
int lcs_helloworld()
{
	int i = 1;
	float f = 1.3;
	
	char buf[128] = "hello ";
	strcpy( buf+strlen(buf)+(buf-buf), "world" );
	sprintf( lcs_logbuf, "%s\n", buf );
	lcs_testlog(); 

	f += i += f;
	
	sprintf( lcs_logbuf, "hello world %d %f\n", i, f );
	lcs_testlog(); 
	return 0;
}
*/
